package com.cch.cooperation.api.zone.dto;

import com.cch.cooperation.dao.file.dto.FileDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.List;

@ApiModel("空间动态新增参数")
@Data
public class ZonePostAddDTO {

    @ApiModelProperty(value = "空间id", required = true)
    @NotEmpty(message = "空间id不能为空")
    private String zoneId;

    @ApiModelProperty(value = "动态内容", required = true)
    private String content;

    @ApiModelProperty("图片")
    private List<FileDTO> pics;

    @ApiModelProperty(value = "来源类型（1.用户发帖 2.事项生成）", hidden = true)
    private Integer sourceType;

    @ApiModelProperty(value = "来源类型id", hidden = true)
    private String sourceId;

    @ApiModelProperty(value = "用户id", hidden = true)
    private String userId;

}
